-- In openresty config file

-- lua_package_path "/opt/openresty/nginx/conf/openresty_waf/?.lua";
-- lua_shared_dict limit 200m;
-- init_by_lua_file   /opt/openresty/nginx/conf/openresty_waf/init.lua; 
-- access_by_lua_file /opt/openresty/nginx/conf/openresty_waf/waf.lua;

-- logdir need nginx user group permission .use "ps uax|grep nginx|grep worker|awk '{print $1}'" 

-- on/off is Case sensitive
RootDir = "/opt/openresty/nginx/conf/openresty_waf/" -- Custom openresty_waf dir Root dir
RulePath = RootDir.."/rule_conf/"
logdir = RootDir.."/log/"

Attack_Log_Module = "on"
Redirect = "on" -- return comstom define content "html"

Ip_White_List_Module = "on" 
Host_White_List_Module = "on"
Ip_Black_List_Module = "on"

Http_Method_Module = "on"
Http_Method_Module_Rule = "GET|POST|PUT"

User_Agent_Black_List_Module = "on"
Url_Black_List_Module = "off"

Base_Ip_Url_CC_Module = "on"
Base_Ip_Url_CC_Rate = "200/60"

Base_Ip_CC_Module = "on"
Base_Ip_CC_Rate = "2000/60"

Url_List_CC_Module = "on"
Url_List_CC_Rate = "2/10"

Mime_Type="html|other"
Mime_Type_Base_Ip_CC_Module = "on"
Mime_Type_Base_Ip_CC_Rate = "4/10"

Ip_White_List_limit_Module = "on"
Ip_White_List_limit_rate = "1000/10"
Ip_White_List_Delay_Max = "60"



html = [[Forbidden]]
